﻿/****************************** Module Header ******************************\
 * Module Name:  tOrderPayment.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 订单-支付设置-支付方式 数据实体类
	/// </summary>
    [DBTable(Common = "订单-支付设置-支付方式")]
	public class tOrderPayment
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
		private Guid? _ID;

		/// <summary>
        /// 支付方式名称
		/// </summary>
		public string Name { get { return _Name; } set { _Name = value; } }

        [DBColumn(Alias = "支付方式名称", Length = "32")]
		private string _Name;

		/// <summary>
        /// 支付提供商名称
		/// </summary>
		public string ProviderName { get { return _ProviderName; } set { _ProviderName = value; } }

        [DBColumn(Alias = "支付提供商名称", CanBeNull = true, Length = "32")]
		private string _ProviderName;

		/// <summary>
        /// 支付提供商网址
		/// </summary>
		public string HomePage { get { return _HomePage; } set { _HomePage = value; } }

        [DBColumn(Alias = "支付提供商网址", CanBeNull = true, Length = "255")]
		private string _HomePage;

		/// <summary>
        /// 交易货币名称
		/// </summary>
		public string Currency { get { return _Currency; } set { _Currency = value; } }

        [DBColumn(Alias = "交易货币名称", CanBeNull = true, Length = "16")]
		private string _Currency;

		/// <summary>
        /// 支付方式标识图片地址
		/// </summary>
		public string LogoUrl { get { return _LogoUrl; } set { _LogoUrl = value; } }

        [DBColumn(Alias = "支付方式标识图片地址", CanBeNull = true, Length = "255")]
		private string _LogoUrl;

		/// <summary>
        /// 摘要介绍
		/// </summary>
		public string Summary { get { return _Summary; } set { _Summary = value; } }

        [DBColumn(Alias = "摘要介绍", CanBeNull = true, Length = "Max")]
		private string _Summary;

		/// <summary>
        /// 合作者身份
		/// </summary>
		public string ParterID { get { return _ParterID; } set { _ParterID = value; } }

        [DBColumn(Alias = "合作者身份", CanBeNull = true, Length = "32")]
		private string _ParterID;

		/// <summary>
        /// 交易安全校验码
		/// </summary>
		public string Key { get { return _Key; } set { _Key = value; } }

        [DBColumn(Alias = "交易安全校验码", CanBeNull = true, Length = "128")]
		private string _Key;

		/// <summary>
        /// 接口类型
		/// </summary>
		public string ConnectType { get { return _ConnectType; } set { _ConnectType = value; } }

        [DBColumn(Alias = "接口类型", CanBeNull = true, Length = "16")]
		private string _ConnectType;

		/// <summary>
        /// 支付手续费类型(0=固定费用,1=按比例收费)
		/// </summary>
		public short CommissionType { get { return _CommissionType ?? default(short); } set { _CommissionType = value; } }

        [DBColumn(Alias = "支付手续费类型", CanBeNull = true)]
		private short? _CommissionType;

		/// <summary>
        /// 支付手续费费率
		/// </summary>
		public decimal Commission { get { return _Commission ?? default(decimal); } set { _Commission = value; } }

        [DBColumn(Alias = "支付手续费费率", DefaultValue = "0.00")]
		private decimal? _Commission;

		/// <summary>
        /// 支付渠道
		/// </summary>
		public string Channel { get { return _Channel; } set { _Channel = value; } }

		[DBColumn(Alias="Channel", CanBeNull=true, Length="255")]
		private string _Channel;

		/// <summary>
        /// 订单详情链接
		/// </summary>
		public string OrderDetailUrl { get { return _OrderDetailUrl; } set { _OrderDetailUrl = value; } }

        [DBColumn(Alias = "订单详情链接", CanBeNull = true, Length = "Max")]
		private string _OrderDetailUrl;

		/// <summary>
        /// 支付方式描述
		/// </summary>
		public string Description { get { return _Description; } set { _Description = value; } }

        [DBColumn(Alias = "支付方式描述", CanBeNull = true, Length = "Max")]
		private string _Description;

		/// <summary>
		/// 扩展标签
		/// </summary>
		public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

		[DBColumn(Alias="扩展标签", Length="16")]
		private string _ExTags;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", DefaultValue="999")]
		private short? _Ordinal;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedDate { get { return _ModifiedDate ?? default(DateTime); } set { _ModifiedDate = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedDate;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
